<?php

require_once '../../ConfigurationFactory.php';
require_once APP_PERSISTENCE.'/entity/EntityChiave.php';

class User extends Chiave {
    
    private $user;
    private $password;
    private $attivo;
    private $email;
    private $nome;
    private $cognome;

    public function __construct() {
        parent::__construct();
        $this->attivo = 1;
    }

    public function getPropertyList() {
        $arrayEl = get_object_vars($this);
        $arrayEl['id'] = $this->getId();
        return $arrayEl;
    }

    public function getId() {
        return parent::getId();
    }

    public function setId($id) {
        parent::setId($id);
    }


    public function getUser() {
        return $this->user;
    }

    public function setUser($user) {
        $this->user = $user;
    }

    public function getPassword() {
        return $this->password;
    }

    public function setPassword($password) {
        $this->password = $password;
    }

    public function getAttivo() {
        return $this->attivo;
    }

    public function setAttivo($attivo) {
        $this->attivo = $attivo;
    }

    public function getEmail() {
        return $this->email;
    }

    public function setEmail($email) {
        $this->email = $email;
    }

    public function getNome() {
        return $this->nome;
    }

    public function setNome($nome) {
        $this->nome = $nome;
    }

    public function getCognome() {
        return $this->cognome;
    }

    public function setCognome($cognome) {
        $this->cognome = $cognome;
    }


    
}
?>
